import request from '@/utils/request'

// 查询客户触达配置列表
export function listCdinfo(query) {
  return request({
    url: '/khcd/cdinfo/list',
    method: 'get',
    params: query
  })
}

// 查询客户触达配置详细
export function getCdinfo(id) {
  return request({
    url: '/khcd/cdinfo/' + id,
    method: 'get'
  })
}

// 新增客户触达配置
export function addCdinfo(data) {
  return request({
    url: '/khcd/cdinfo',
    method: 'post',
    data: data
  })
}

// 修改客户触达配置
export function updateCdinfo(data) {
  return request({
    url: '/khcd/cdinfo',
    method: 'put',
    data: data
  })
}

// 删除客户触达配置
export function delCdinfo(id) {
  return request({
    url: '/khcd/cdinfo/' + id,
    method: 'delete'
  })
}

// 导出客户触达配置
export function exportCdinfo(query) {
  return request({
    url: '/khcd/cdinfo/export',
    method: 'get',
    params: query
  })
}